.upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
  margin: 20px;
}

/* 标题 */
.title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

/* 拖拽上传区域 */
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* 调整后的高度 */
  width: 50%;
  border: 2px dashed #007bff;
  border-radius: 10px;
  background-color: #e6f7ff;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background-color 0.3s;
}

.dropzone:hover {
  background-color: #d0e7ff;
}

.dropzone p {
  color: #007bff;
  font-size: 18px;
  text-align: center;
  margin: 0;
}

/* 按钮组 */
.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

/* 统一按钮样式 */
.upload-button,
.clear-button {
  padding: 10px 20px;
  min-width: 120px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.upload-button {
  background-color: #007bff;
  color: white;
}

.upload-button:hover:not(:disabled) {
  background-color: #0056b3;
}

.upload-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.clear-button {
  background-color: #dc3545;
  color: white;
}

.clear-button:hover {
  background-color: #a80000;
}

/* 表格区域 */
.table-container {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #ddd;
}

.preview-table th,
.preview-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.preview-table th {
  background-color: #f0f2f5;
}

/* 图片预览缩略图 */
.image-preview {
  max-width: 100px;
  max-height: 100px;
  border-radius: 5px;
  object-fit: cover;
}

/* 可选：表格响应式体验优化（小屏） */
@media (max-width: 768px) {
  .upload-container {
    padding: 15px;
  }

  .dropzone p {
    font-size: 16px;
  }

  .upload-button,
  .clear-button {
    font-size: 14px;
    min-width: 100px;
  }

  .image-preview {
    max-width: 80px;
    max-height: 80px;
  }
}

.upload-trigger {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* 移除按钮的默认边框等，确保一致性 */
.upload-trigger .upload-button {
  padding: 10px 20px;
  min-width: 120px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s;
}

.upload-trigger .upload-button:hover {
  background-color: #0056b3;
}
.select-button {
  padding: 10px 20px;
  min-width: 120px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #28a745; /* ✅ Bootstrap风格绿色 */
  color: white;
  transition: background-color 0.3s;
}

.select-button:hover {
  background-color: #218838;
}
